﻿using System;
using System.Collections.Generic;
using System.Text;
using Task.Entity;
using System.Collections;
using App.Data;

namespace Task.Logic
{
    public class ESI_TBConfigLogic
    {
        public List<ESI_TBConfigEntity> GetList(string where)
        {
            return DataAccess.Instance("BusinessDB").GetList<ESI_TBConfigEntity>("ESI_TBConfigLogic_GetList", where);
        }

        public void DeleteConfig(string processName, string stepName)
        {
            Hashtable table = new Hashtable();
            table.Add("processName", processName);
            table.Add("stepName", stepName);
            DataAccess.Instance("BusinessDB").Delete("ESI_TBConfigLogic_DeleteConfig", table);
        }

        public string GetInitTaskID(string processName)
        {
            return DataAccess.Instance().GetEntity<string>("ESI_TBConfigLogic_GetInitTaskID", processName);
        }
    }
}
